<!-- modal page start -->
<div class="am-modal am-modal-confirm" tabindex="-1" id="modal" style="top: 30%;">
  <div class="am-modal-dialog">
    <div class="am-modal-hd">
      <span id="modal-title">Amaze UI</span>
      <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
    </div>
    <div class="am-modal-bd" id="modal-content" style="text-align: left;height: 300px;overflow: auto;font-size: 14px;">
      loading...
    </div>
    <div class="am-modal-footer">
      <span class="am-modal-btn" id="modal-cancel">取消</span>
      <span class="am-modal-btn" id="modal-confirm">确定</span>
    </div>
  </div>
</div>
<!-- modal page end -->
<script type="text/javascript">

  /*function openModal(title,datas,callback){
    var $modal = $("#my-modal");
    $modal.modal({
      closeViaDimmer: false //点击遮罩层时关闭 Modal，默认为 true
    });
    $modal.on('opened.modal.amui', function(){//打开窗口时的处理事件
      $("#my-modal-title").html(title);//给弹窗元素赋标题值
      $("#my-modal-content").html(datas);//给弹窗元素赋内容值
    });
    $modal.on('closed.modal.amui', function() {//关闭窗口时的处理事件
      $('#my-modal-confirm').unbind('click');//解绑
      $('#my-modal-cancel').unbind('click');//解绑
      //清除数据，Confirm 关闭后移除暂存的实例，再次调用时重新初始化
      $modal.removeData('amui.modal');
    });
    $('#my-modal-confirm').on('click', function() {//确认按钮处理事件
      callback($("#my-modal-select  option:selected").text());//确认后返回数据
    });
    $('#my-modal-cancel').on('click', function() {//取消按钮处理事件
      $modal.modal('close');
    });
  }*/
</script>